﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace feixiangCMS.Controllers
{
    public class BaseControl : System.Web.Mvc.Controller
    {
        public DavidDB.ADO.DBManager db;
        public BaseControl()
        {
            db = new DavidDB.ADO.DBManager();
        }
        protected override void OnException(ExceptionContext filterContext)
        {
            if (db != null)
            {
                db.RollBack();
                db.Dispose();
            }
            base.OnException(filterContext);

        }

    }
}